﻿using System.Windows.Media;

namespace SafeLoad.NControl.Assist
{

  /// <summary>
  /// 曲线数据对象
  /// </summary>
  public class NCurveItem
  {
    /// <summary>
    /// 实例化一个对象
    /// </summary>
    public NCurveItem()
    {
      LineColor = Colors.Red;
      LineThickness = 1.0d;
      Visible = true;
      LineRenderVisiable = true;
      Style = CurveStyle.LineSegment;
    }

    /// <summary>
    /// 数据
    /// </summary>
    public double[] Data = null;

    /// <summary>
    /// 标记文本
    /// </summary>
    public string[] MarkText = null;

    /// <summary>
    /// 线条的宽度
    /// </summary>
    public double LineThickness { get; set; }

    /// <summary>
    /// 是否平滑的曲线显示，默认为False
    /// </summary>
    public CurveStyle Style { get; set; }

    /// <summary>
    /// 曲线颜色
    /// </summary>
    public Color LineColor { get; set; }

    /// <summary>
    /// 本曲线是否显示出来，默认为显示
    /// </summary>
    public bool Visible { get; set; }

    /// <summary>
    /// 用于曲线自身选择是否显示的情况的判断
    /// </summary>
    public bool LineRenderVisiable { get; set; }

    /// <summary>
    /// 本曲线在图形上显示的格式化信息，对历史数据有效
    /// </summary>
    public string RenderFormat { get; set; } = "{0}";
  }
}
